import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
//引用富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

Vue.use(VueQuillEditor)


//引用axios
import axios from "axios"
import VueAxios from "vue-axios"

Vue.config.productionTip = false

//设置后端服务器的根路径
axios.defaults.baseURL="http://localhost:8080/";
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Vue.use(ElementUI);
Vue.use(VueAxios,axios);


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
